home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(enterFrame){
- if(_root.gameOver == 1)
- {
- removeMovieClip(this);
- _visible = false;
- }
- if(_root.gameOn == 1)
- {
- _root.hitPlayer(this);
- this._rotation += 2;
- if(_X < - _width - 10)
- {
- removeMovieClip(this);
- }
- if(dir == 0)
- {
- if(_Y > 30)
- {
- _Y = _Y - upSpd;
- }
- if(_Y <= 30)
- {
- dir = 1;
- }
- }
- if(dir == 1)
- {
- if(_Y < 370)
- {
- _Y = _Y + upSpd;
- }
- if(_Y >= 370)
- {
- dir = 0;
- }
- }
- myColor.setBrightOffset(random(100));
- _X = _X - 3;
- }
- }
-